﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decoration.Models.Models
{
    /// <summary>
    /// 实列表
    /// </summary>
    public class WF_Instance
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 申请Id
        /// </summary>
        public Int64 ApplicationId { get; set; }
        public int ApplicationTypeId { get; set; }

        /// <summary>
        /// 当前节点编号
        /// </summary>
        public int NodeCode { get; set; }
        /// <summary>
        /// 节点名称
        /// </summary>
        public string NodeName { get; set; }
        /// <summary>
        /// 业务流程状态
        /// </summary>
        public int FlowStatus { get; set; }
        /// <summary>
        /// 发起人Id
        /// </summary>
        public int StarterId { get; set; }
        /// <summary>
        /// 发起人名称
        /// </summary>
        public string Starter { get; set; }
        /// <summary>
        /// 操作者id
        /// </summary>
        public int OperatorId { get; set; }
        /// <summary>
        /// 操作者名称
        /// </summary>
        public string Operator { get; set; }
        /// <summary>
        /// 代办人id
        /// </summary>
        public int ToDoerId { get; set; }
        /// <summary>
        /// 代办人名称
        /// </summary>
        public string ToDoer { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; } = 1;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
